<?php defined('KX_ROOT') || exit('Permission denied');?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" />
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <title><?php include \Kuxin\View::parseTpl($tkd['title']);?></title>
    <meta name="keywords" content="<?php include \Kuxin\View::parseTpl($tkd['keywords']);?>" />
    <meta name="description" content="<?php include \Kuxin\View::parseTpl($tkd['description']);?>" />
    <meta name="MobileOptimized" content="240" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
    <link rel="shortcut icon" href="/favicon.ico" />
    <meta http-equiv="Cache-Control" content="max-age=0" />
    <meta http-equiv="Cache-Control" content="no-transform " />
    <link rel="stylesheet" type="text/css" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno3/css/sort.css" />
</head>
<body>
<div class="header" id="bqgmb_head">
    <div class="back"><a href="javascript:history.go(-1);">返回</a></div>
    <div class="back_r"><a href="/">首页</a></div>
</div>

<div class="nav">
    <ul>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("novel.category.index",[],"");?>">分类</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("novel.rank.index",[],"");?>">排行</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("novel.over.index",[],"");?>">全本</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("user.history.index",[],"");?>">阅读记录</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("user.mark.index",[],"");?>">书架</a></li>
        <div class="cc"></div>
    </ul>
</div>

<div class="search">
    <form action="<?php echo \Kuxin\Helper\Url::build("novel.search.result",[],"");?>">
        <table cellpadding="0" cellspacing="0" style="width:100%;">
            <tr>
                <td style="background-color:#fff; border:1px solid #CCC;">
                    <input style="height:20px;line-height:20px;" id="s_key" name="searchkey" type="text" class="key" value="输入书名后搜索，宁可少字不要错字" onFocus="this.value=''" />
                </td>
                <td style="width:35px; background-color:#0080C0; background-image:url('<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno3/images/search.png'); background-repeat:no-repeat; background-position:center">
                    <input name="submit" type="submit" value="" class="go">
                </td>
            </tr>
        </table>
    </form>
</div>
<div class="toptab"><span class="active">全本小说</span></div>
<?php $paginate=\Kuxin\Block::show('pagination', ['page'=>$page,'limit'=>$pagesize,'count'=>$count,'maxpage'=>50,'section'=>3]);?>
<?php $list=\Kuxin\Block::show('novel.list', ['order'=>'lastupdate','num'=>$paginate['limit'],'page'=>$paginate['current'],'isover'=>1]);?>
<?php if(is_array($list) && (array()!=$list)): $i=array(); $i['loop']=array_slice($list,0,null,true); $i['total']=count($list); $i['count']=count($i['loop']); $i['cols']=1; $i['add']=$i['count']%1?1-$i['count']%1:0; $i['order']=0; $i['row']=1;$i['col']=0;foreach(array_pad($i['loop'],$i['add'],array()) as $i['index']=>$i['list']): $loop=$i['list']; $i['order']++; $i['col']++; if($i['col']==1): $i['col']=0; $i['row']++; endif; $i['first']=$i['order']==1; $i['last']=$i['order']==$i['count']; $i['extra']=$i['order']>$i['count'];?>
<div class="bookbox">
    <div class="bookimg"><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>"><img src="<?php echo $loop['novel']['cover'];?>"></a></div>
    <div class="bookinfo">
        <h4 class="bookname"><i class="iTit"><a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>"><?php echo $loop['novel']['name'];?></a></i></h4>
        <div class="author">作者：<?php echo $loop['author']['name'];?></div>
        <div class="cl0"></div>
        <div class="update"><span>更新至：</span><a href="<?php echo \Kuxin\Helper\Url::build("novel.chapter.read",['novelid'=>$novel['id'],'pinyin'=>$novel['pinyin'],'chapterid'=>$last['id']],"");?>"><?php echo $loop['last']['name'];?></a></div>
        <div class="cl0"></div>
        <div class="intro_line"><span>简介：</span><?php echo showIntroLine($loop['novel']['intro']);?>
        </div>
    </div>
</div>
<?php endforeach; endif;?>

<div class="page">
    <a href="<?php echo \Kuxin\Helper\Url::build("novel.over.list",['categoryid'=>$category['id'],'key'=>$category['key'],'page'=>$paginate['first']],"");?>">首页</a>
    <?php if($paginate['prev']):?>
    <a href="<?php echo \Kuxin\Helper\Url::build("novel.over.list",['categoryid'=>$category['id'],'key'=>$category['key'],'page'=>$paginate['prev']],"");?>">上页</a>
    <?php endif;?>
    <?php if($paginate['next']):?>
    <a href="<?php echo \Kuxin\Helper\Url::build("novel.over.list",['categoryid'=>$category['id'],'key'=>$category['key'],'page'=>$paginate['next']],"");?>">下页</a>
    <?php endif;?>
    <a href="<?php echo \Kuxin\Helper\Url::build("novel.over.list",['categoryid'=>$category['id'],'key'=>$category['key'],'page'=>$paginate['last']],"");?>">尾页</a>
</div>
<div class="footer">
    <ul>
        <li><a href="./">首页</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "pcurl");?>">电脑版</a></li>
        <li><a href="<?php echo \Kuxin\Helper\Url::build("user.mark.index",[],"");?>">书架</a></li>
    </ul>
</div>
</body>
</html>
